home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
mail
/
tag_tool.zip
/
READ_ME.DOC
< prev
next >
Wrap
Text File
|
1992-10-26
|
3KB
|
91 lines
DUPES DBF 458752 10-26-92 12:25p
DUPES NDX 643584 10-26-92 12:25p
FILES TXT 165 10-26-92 12:31p
TAGLINES BAS 455 10-26-92 1:06p
TAGLINES EXE 40700 10-26-92 1:08p
TAGLINES OLX 286914 10-26-92 12:28p
TAGLINES PRG 306 10-12-92 3:03p
===========================================================
I needed a way to sort tagline files (in this case, for
Mustang's OLX .QWK Mail Packet Reader), and the file was
much too large to use the DOS SORT.EXE command as it is
rather easy to run out of memory.
The quickest way I felt was to use the capabilities of
dBase III/III+ so I wrote TAGLINES.PRG to accomplish
this.
Copy all of the above files into your dBase directory.
Start dBase.
Use the commands: "use dupes index dupes"
"append from taglines.olx sdf"
"reindex"
"do taglines"
"copy to taglines.olx sdf"
What this little program does is append your ASCII file of
taglines into one file. You may append as many different
ASCII tagline files that you have, disk space and dBase are
the only limitations.
After doing this I ran into a problem in that this writes out
an entire 72 characters which makes it impossible to change or
add a tagline without deleted the spaces at the end.
I then wrote the little Q-Basic program TAGLINES.BAS and
compiled it into TAGLINES.EXE (with out the necessary
run-time module).
run this program by typing "TAGLINES".
It will ask you for in input file that dBase just created and
sorted for you. Then it will need a temporary file name (I use
TAGLINES.TXT). The little BASIC program will then read every
line, and strip off the trailing spaces for you.
It is then a simple matter to copy TAGLINES.TXT over the top
of TAGLINES.OLX (or whatever).
"copy taglines.txt taglines.olx" is the example of the DOS
commands to do this.
I have included the source code for both the dBase program as well
as the BASIC program.
If you do not have dBase (or access to it), then I have also
included a COBOL file with source code and memory map for you
to sort your ASCII tagline file down - it was written to allow
the sorting of the file in either ascending OR descending
order. The only warning here is that the tagline file must NOT
contain a tagline over 80-characters long. If you change your
mind while running this TAG-SORT.EXE file, just press CTRL-C
to break out of it.
I have tried to keep this simple and as flexible as possible which
is the reason I used so many steps instead of including all of this
into one program and just running it.
If you have any suggestions or problems or let me know. I may
decide later to write the entire thing in COBOL if there is
enough interest. Again, these programs are free to do with as
you please. I expect no payment for these little TAGLINE
utilities. I simply wanted to give you the benefit of my
experience and access to the couple of utilites I use on about
a monthly basis.
Roger Cravens
SYSOP, Total Recall BBS
Douglasville, Georgia (USA)
(404) 920-0621